﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ImageTour
{
    class HorizonTool : ImageAnnotationTool
    {
        bool mouseDown = false;

        internal override void MouseDown(int x, int y)
        {
            annotations.Horizon = y;
            mouseDown = true;
        }

        internal override void DrawOverlay(System.Drawing.Graphics g)
        {
            annotations.Draw(view, g);
        }

        internal override void MouseMove(int x, int y)
        {
           if (mouseDown)
               annotations.Horizon = y;
        }

        internal override void MouseUp(int x, int y)
        {
            mouseDown = false;
        }
    }
}
